//src\components\MyNavLink\index.jsx
import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'

export default class MyNavLink extends Component {
    render() {
        const { to,children } = this.props;
        return (
            <NavLink className="list-group-item" activeClassName='active' to={to }>{children}</NavLink>
        )
    }

}
